local fanshu_active = fk.CreateSkill {
  name = "lingling__fanshu_active",
}

Fk:loadTranslationTable{
  ["lingling__fanshu_active"] = "翻书",
}

fanshu_active:addEffect("active", {
  card_num = 0,
  target_num = 2,
  target_filter = function (self, player, to_select, selected)
    if to_select.role == "lord" then
      return #selected == 0 or selected[1].seat < 3
    else
      return #selected == 0 or selected[1].role ~= "lord" or to_select.seat < 3
    end
  end,
})

return fanshu_active
